const { Schema, model } = require('mongoose');
const majorSchema = new Schema({
    //属性名+数据类型
    name: String
}, { versionKey: false });
//2.设置数据模型，同时连接数据集合
module.exports.majorModel = model('majorModel', majorSchema, 'major');